package com.wn.cleandemo.junk.bean;

import androidx.annotation.Nullable;


import com.wn.cleandemo.junk.JunkType;

import java.io.File;

public class BaseJunk extends PathBean {
    public @JunkType.Type
    int junkType;

    private boolean isCheckedDel = true;

    public BaseJunk(@Nullable File file, @JunkType.Type int junkType) {
        super(file);
        this.junkType = junkType;
    }

    public boolean DoCleanJUnk() {
        // todo young 这个后续再补充
//        return FileDelHelper.DelFile(getPath());
        return false;
    }

    public boolean isCheckedDel() {
        return isCheckedDel;
    }

    public void setCheckedDel(boolean checkedDel) {
        isCheckedDel = checkedDel;
    }

    @Override
    public String toString() {
        return "BaseJunk{" +
                "path='" + path + '\'' +
                ", name='" + name + '\'' +
                ", size=" + size +
                '}';
    }
}
